<template>
	<view class="personal">
		<StatusBar></StatusBar>
		<view class="header">
			<view class="left">
			</view>
			<view class="title">
				我的
			</view>
			<!-- <view class="right">
				<view class="moon">
					<text class="iconfont icon-moon"></text>
				</view>
				<view class="message">
					 <view class="icon-container">
					    <text class="iconfont icon-xiaoxi"></text> 
					    <view class="badge"></view> 
					  </view>
				</view>
			</view> -->
		</view>



		<view class="contentBox">
			<!-- <view class="cellGrounp">
				<view class="cell">
					<view class="left">
						<image src="/static/images/personal/icon1.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							资产总览
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
				<view class="cell">
					<view class="left">
						<image src="/static/images/personal/icon2.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							管理钱包
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
				<view class="cell">
					<view class="left">
						<image src="/static/images/personal/icon3.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							交易记录
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
			</view> -->
			<view class="cellGrounp">
				<!-- <view class="cell">
					<view class="left">
						<image src="/static/images/personal/icon4.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							体验区
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view> -->
				<view class="cell" @tap="addText">
					<view class="left">
						<image src="/static/images/personal/icon5.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							地址本
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
			</view>
			<view class="cellGrounp">
				<view class="cell" @tap="share">
					<view class="left">
						<image src="/static/images/personal/icon6.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							邀请好友
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
				<view class="cell" @tap="webView">
					<view class="left">
						<image src="/static/images/personal/icon7.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							钱包指引
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
				<view class="cell" @tap="aboutUs">
					<view class="left">
						<image src="/static/images/personal/icon8.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							关于我们
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view>
				<!-- <view class="cell">
					<view class="left">
						<image src="/static/images/personal/icon9.png" mode="" class="icon"></image>
					</view>
					<view class="right">
						<view class="title">
							系统设置
						</view>
						<text class="iconfont icon-youjiantou"></text>
					</view>
				</view> -->
			</view>
		</view>
		<tabbar :selectedIndex="Appstatus==0?3:1"></tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		computed: {
			Appstatus() {
				return this.$store.getters.Appstatus
			}
		},
		onShow() {
		  uni.hideTabBar()
		},
		methods: {
			webView() {
				uni.navigateTo({
					url: `/pages/webView/webView?url=https://tp-lab.tptool.pro/WalletKnow/?locale=zh#/&title=钱包指引`
				})
			},
			protocol() {
				uni.navigateTo({
					url: '/pages/protocol/protocol?id=1'
				})
			},
			aboutUs() {
				uni.navigateTo({
					url: '/pages/aboutUs/aboutUs'
				})
			},
			share() {
				uni.navigateTo({
					url: '/pages/share/share'
				})
			},
			addText() {
				uni.navigateTo({
					url: '/pages/addText/addText'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	@import "/static/iconfont/iconfont.css";

	.personal {
		font-weight: 400;
		font-size: 30upx;
		color: #3D3D3D;
		height: 100%;
		background: #EFEFEF;

		.header {
			width: 100%;
			height: 100upx;
			box-sizing: border-box;
			padding: 0 38upx 0 54upx;
			display: flex;
			justify-content: center;
			align-items: center;
			position: relative;
			background: #FFFFFF;

			.left {}

			.title {}

			.right {
				position: absolute;
				display: flex;
				align-items: center;
				height: 100%;
				top: 0;
				right: 34upx;
				color: #3D3D3D;
				font-weight: bold;

				.moon {
					margin-right: 34upx;
				}

				.message {
					.icon-container {
						position: relative;

						.badge {
							position: absolute;
							bottom: 6upx;
							right: 0;
							background-color: #FE4606;
							width: 12upx;
							height: 12upx;
							border-radius: 6upx;

						}
					}

				}
			}
		}

		.contentBox {
			.cellGrounp {
				background: #FFFFFF;
				border-top: 14upx solid #EFEFEF;

				>:last-child {
					.right {
						border-bottom: none !important;
					}
				}

				.cell {
					display: flex;
					align-items: center;
					height: 92upx;
					padding-left: 48upx;

					.left {
						margin-right: 22upx;
						display: flex;

						.icon {

							width: 44upx;
							height: 44upx;
						}
					}

					.right {
						padding-right: 30upx;
						flex: 1;
						display: flex;
						align-items: center;
						justify-content: space-between;
						border-bottom: 1upx solid #D8D8D8;
						height: 92upx;

						.title {}

						.iconfont {
							color: #A2A2A2;
							font-weight: bold;
						}
					}
				}
			}
		}
	}
</style>